<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="../../css/weui.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/jquery-weui.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/index.css" />
		<link rel="stylesheet" type="text/css" href="../../css/demand.css" />
		<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_546019_o8qxm6fupb0ggb9.css" />
		<title>需求详情</title>
		<script src="../../js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/baseConfig.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<style type="text/css">
		.header-title{
			border-bottom: 2px solid #e2e2e2 !important;
		}
		.article{
			margin-top: 0;
		}
		.article img{
			width: 100% !important;
			height: auto;
		}
	</style>
	<body>
		<!--<div id="header">
			<div class="header-title" style="position: fixed;top: 0;border-bottom: 0;">
				<img src="../../img/left.png" class="left" />
				<span>需求详情</span>
			</div>
		</div>-->
		<div class="body-content" style="margin-top: 0;">
			
			<div class="articleContent">
				<!--<h3>前三季度有色金属行业运行情况</h3>
				<p class="comefrom">
					<span class="from">再生资源利用网</span>
					<span class="time">2017/12/09 12:12:12</span>
				</p>-->
				<div class="article">
			
				</div>
				<div class="demos-content-padded" style="margin-top: 1.5rem;">
					<a href="javascript:;" class="weui-btn weui-btn_mini weui-btn_default" style="float: left;background: #e5e5e5;">联系客服</a>
					<a href="javascript:;" class="weui-btn weui-btn_mini weui-btn_primary" style="float: right;margin-top: 0;background: #28c81e;">我要供货</a>
				</div>
			</div>

		</div>
	</body>
	<script type="text/javascript">
		$(document).ready(function(){
			baseConfig.historyBack();
			$.showLoading("加载中...");
			function HTMLEncode(text) {
				var temp = document.createElement("p");
				temp.innerHTML = text;
				var output = temp.innerText || temp.textContent
				temp = null
				return output
			}		
			$.ajax({
					type: "get",
					url: baseConfig.localHttp+"weChatApi/fgclient/getNeedInfoContent",
					async: false,
					data:{
						id:baseConfig.GetQueryString("id")
					},
					headers: {
						'Content-Type': 'application/x-www-form-urlencoded'
					},
					success: function(data) {
						$.hideLoading();
//						console.log(data)
						if(data.code==100){
							$(".article").html(HTMLEncode(data.content))
						}else{
							
						}
					}
				})	
			$(".weui-btn_primary").on("click",function(){
				if(!localStorage.getItem("SupplierId")){
					location.href = "../login/login.html"
				}else{
					location.href = "../order/addNeworder.html"
				}
			})
		})
		
	</script>

</html>